<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>Edit Membership Type</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width">

        <link rel="stylesheet" href="/OnlineResortReservation/adminpages/css/bootstrap.min.css">
        <style>
            body {
                padding-top: 60px;
                padding-bottom: 40px;
            }
        </style>
        <link rel="stylesheet" href="/OnlineResortReservation/adminpages/css/bootstrap-responsive.min.css">
        <link rel="stylesheet" href="/OnlineResortReservation/adminpages/css/main.css">

        <script src="/OnlineResortReservation/adminpages/js/vendor/modernizr-2.6.1.min.js"></script>
    </head>
    <body>

        <div class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
                    <a class="brand" href="#">Prime Resort</a>
                    <div class="nav-collapse collapse">
                        <ul class="nav">
                            <li><a href="home.html">Home</a></li>

                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Room <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                	<li><a href="add-room.html">Add New Room Type</a></li>
                                    <li><a href="view-rooms.html">View Types of Rooms</a></li>
                                    <li><a href="view-rooms.html">View Rooms</a></li>
                                    <li class="divider"></li>
                                    <li><a href="add-facility.html">Add New Facility</a></li>
                                    <li><a href="view-rooms.html">View Facilities</a></li>

                                </ul>
                            </li>

                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Addon <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                	 <li><a href="add-addon-type.html">Add New Addon Type</a></li>
                                    <li><a href="view-addon-types.html">View Addon Types</a></li>
                                    <li class="divider"></li>
                                    <li><a href="add-addon.html">Add new Addon</a></li>
                                    <li><a href="view-addons.html">View Addons</a></li>
                                </ul>
                            </li>

                            <li class="dropdown active">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Membership <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="add-membership-type.html">Add new Membership Type</a></li>
                                    <li><a href="view-membership-types.html">View Membership Types</a></li>
                                </ul>
                            </li>

                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Package <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="add-package.html">Add new Package</a></li>
                                    <li><a href="view-packages.html">View Packages</a></li>
                                </ul>
                            </li>

                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Event <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="add-event.html">Add new Event</a></li>
                                    <li><a href="view-events.html">View Events</a></li>
                                </ul>
                            </li>

                             <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Bookings <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="add-new-booking.html">Add New booking</a></li>
                                    <li><a href="view-bookings.html">View Bookings</a></li>
                                    <li class="divider"></li>
                                    <li><a href="cancellation-policy.html">Cancellation Policy</a></li>
                                </ul>
                            </li>

                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">User <b class="caret"></b></a>
                                <ul class="dropdown-menu">

                                    <li class="dropdown-submenu">
                                    	<a href="#">Admin User</a>
                                        <ul class="dropdown-menu">
                                            <li><a href="add-admin-user.html">Add new Admin User</a></li>
                                            <li><a href="view-admin-users.html">View Admin users</a></li>
                                		</ul>
                           			</li>
                                	<li class="dropdown-submenu">
                                		<a href="#">Registered User</a>
                                        <ul class="dropdown-menu">
                                            <li><a href="add-registered-user.html">Register New User</a></li>
                                            <li><a href="view-registered-users.html">View Regstered Users</a></li>
                                		</ul>
                                    </li>

                                </ul>
                            </li>

                            <li><a href="send-email.html">Email</a></li>

                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Report <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="#">Membership</a></li>
                                    <li><a href="#">Events</a></li>
                                    <li><a href="#">Bookings</a></li>
                                    <li><a href="#">Others</a></li>
                                </ul>
                            </li>

                             <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Gallery <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="add-gallery-type.html"> Add New Gallery Type</a></li>
                                     <li><a href="view-gallery-types.html">View Gallery Types</a></li>
                                     <li class="divider"></li>
                                    <li><a href="add-gallery.html"> Add New Gallery</a></li>
                                    <li><a href="view-galleries.html">View Galleries</a></li>

                                </ul>
                            </li>

                            <li class="dropdown">

                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Profile <b class="caret"></b></a>
                                <ul class="dropdown-menu">

                                    <li><a href="edit-profile.html">Edit Profile</a></li>
                                	<li><a href="change-password.html">Change Password</a></li>

                                    <li><a href="#"><span class="label label-important">Logout</span></a></li>

                                </ul>
                            </li>

                        </ul>

                    </div><!--/.nav-collapse -->
                </div>
            </div>
        </div>

        <div class="container">

                   <div class="box">

                        <legend>
                          Edit Membership Type
                        </legend>
                      
                       <form id="update-membership-type" action="UpdateMemTypeServlet" method="post">
                       
                           <c:forEach items="${men}" var="a">
                        <div class="span6">
                            
                            <input type="hidden" name="id" value="${a.memid}"/>
                        	<p>
                            	<label for="membership-type-name">Membership Type Name</label>
                                <input type="text" required name="membership-type-name" id="membership-type-name" value="${a.memtypename}" class="input-xlarge" placeholder="Enter name of Membership Type">
                            </p>

                            <p class="input-prepend input-append">
                            	<label for="membership-time" >Membership Time Period</label>
                                <span class="add-on">Months.</span><input type="number" name="membership-time" id="membership-time" value="${a.timepeirod}"required class="input-medium" placeholder="Membership Period">
                            </p>
                            <br>

                        </div>

                        <div class="span4 offset1">

                        	<p class="input-prepend input-append">
                            	<label for="membership-fees" >Membership Fees</label>
                                <span class="add-on">Rs. </span><input type="number" name="membership-fees" id="membership-fees" value="${a.fees}"required class="input-medium" placeholder="Membership Fees">
                            </p>
                            <br>

                            <p class="input-prepend input-append">
                            	<label for="discount" >Discount To Be Given</label>
                                <span class="add-on">%. </span><input type="number" name="discount" id="discount" value="${a.discount}" required class="input-medium" placeholder="Discount">
                            </p>

                            <br>


                        </div>
                         
                        <div class="clearfix"></div>

                        <div class="span11">


                            <p class="textarea-nice">
                            	<label for="description" >Membership Description</label>
                                <textarea name="description" class="input-block-level" id="description" required rows="6" >${a.description} </textarea>
                            </p>


                            <p>
                             	<label class="checkbox">
                                <input type="checkbox" name="status" id="status"> Check the box to make the Membership Active.
                                </label>

                            </p>

                            <p>
                            	<input type="submit" class="btn btn-primary btn-large" value="Save" name="submit">
                            </p>
                            <p>
                                <!-- <label class="text-success"> Display the "succesfully saved" message here on successfull submission</label> -->
                            </p>

                        </div>
                          </c:forEach>
                        <div class="clearfix"></div>

                            
                            </form>

				</div>

            <hr>

            <footer>
                <p>&copy; The Prime Resort, 2012</p>
            </footer>

        </div> <!-- /container -->

        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
        <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.8.1.min.js"><\/script>')</script>

        <script src="js/vendor/bootstrap.min.js"></script>
		<script src="js/nicEdit.js"></script><!-- including nicedit js-->
        <script src="/OnlineResortReservation/adminpages/js/main.js"></script>
        <script src="/OnlineResortReservation/adminpages/js/jquery.validate.min.js"></script>
        <script type="/OnlineResortReservation/adminpages/text/javascript">

			$(document).ready(function() {

				 // form validation
				 $("#add-membership-type").validate();

            });

			bkLib.onDomLoaded(function() { //assigning nicedit to textarea
					new nicEditor({fullPanel : true,iconsPath : 'js/nicEditorIcons.gif',xhtml: true}).panelInstance('description');
				});

        </script>

    </body>
</html>
